<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dil.FileBOM</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dil.FileBOM";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dil.FileBOM.html" class="symbol">dil.FileBOM</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> very high.</p>
<dl>
<dt class="decl">enum <a class="symbol _enum" name="BOM" href="./htmlsrc/dil.FileBOM.html#L9" kind="enum" beg="9" end="17">BOM</a>; <a title="Permalink to this symbol" href="#BOM" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L9">#</a></dt>
<dd class="ddef">
<div class="summary">Enumeration of byte order marks.</div>
<dl>
<dt class="decl"><a class="symbol _enummem" name="BOM.None" href="./htmlsrc/dil.FileBOM.html#L11" kind="enummem" beg="11" end="11">None</a> <a title="Permalink to this symbol" href="#BOM.None" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L11">#</a></dt>
<dd class="ddef">
<div class="summary">No BOM</div></dd>
<dt class="decl"><a class="symbol _enummem" name="BOM.UTF8" href="./htmlsrc/dil.FileBOM.html#L12" kind="enummem" beg="12" end="12">UTF8</a> <a title="Permalink to this symbol" href="#BOM.UTF8" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L12">#</a></dt>
<dd class="ddef">
<div class="summary">UTF-8: EF BB BF</div></dd>
<dt class="decl"><a class="symbol _enummem" name="BOM.UTF16BE" href="./htmlsrc/dil.FileBOM.html#L13" kind="enummem" beg="13" end="13">UTF16BE</a> <a title="Permalink to this symbol" href="#BOM.UTF16BE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L13">#</a></dt>
<dd class="ddef">
<div class="summary">UTF-16 Big Endian: FE FF</div></dd>
<dt class="decl"><a class="symbol _enummem" name="BOM.UTF16LE" href="./htmlsrc/dil.FileBOM.html#L14" kind="enummem" beg="14" end="14">UTF16LE</a> <a title="Permalink to this symbol" href="#BOM.UTF16LE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L14">#</a></dt>
<dd class="ddef">
<div class="summary">UTF-16 Little Endian: FF FE</div></dd>
<dt class="decl"><a class="symbol _enummem" name="BOM.UTF32BE" href="./htmlsrc/dil.FileBOM.html#L15" kind="enummem" beg="15" end="15">UTF32BE</a> <a title="Permalink to this symbol" href="#BOM.UTF32BE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L15">#</a></dt>
<dd class="ddef">
<div class="summary">UTF-32 Big Endian: 00 00 FE FF</div></dd>
<dt class="decl"><a class="symbol _enummem" name="BOM.UTF32LE" href="./htmlsrc/dil.FileBOM.html#L16" kind="enummem" beg="16" end="16">UTF32LE</a> <a title="Permalink to this symbol" href="#BOM.UTF32LE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L16">#</a></dt>
<dd class="ddef">
<div class="summary">UTF-32 Little Endian: FF FE 00 00</div></dd></dl></dd>
<dt class="decl">BOM <a class="symbol _function" name="tellBOM" href="./htmlsrc/dil.FileBOM.html#L20" kind="function" beg="20" end="48">tellBOM</a><span class="params">(ubyte[] <em>data</em>)</span>; <a title="Permalink to this symbol" href="#tellBOM" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L20">#</a></dt>
<dd class="ddef">
<div class="summary">Looks at the first bytes of data and returns the corresponding BOM.</div></dd>
<dt class="decl"><a class="symbol _unittest" name="unittest" href="./htmlsrc/dil.FileBOM.html#L50" kind="unittest" beg="50" end="86">unittest</a>; <a title="Permalink to this symbol" href="#unittest" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.FileBOM.html#L50">#</a></dt>
<dd class="ddef"></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:54 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>